Questions tagged [iphone]

103292 questions
1

votes
2

answer
415

Views

Black screen is coming below the presented view controller

I am trying to present a view controller modally. It is like a pop up view controller. I am using animateTransition method to animate the transition. This is my code: extension PopUpViewController: UIViewControllerTransitioningDelegate, UIViewControllerAnimatedTransitioning { func transitionDuratio...
Sudhanshu Gupta
1

votes
2

answer
87

Views

How do I check status of my Ajax request running on my iPhone Safari?

I have this code loaded on my site fingerprinting page loaded. // console.log(window); function getIPhoneModel() { // Create a canvas element which can be used to retrieve information about the GPU. var canvas = document.createElement('canvas'); if (canvas) { var context = canvas.getContext('webgl'...
kyo
1

votes
1

answer
2.5k

Views

How to read SMS inbox programmatically in iphone?

How to read SMS inbox programmatically in iphone?
dipak
1

votes
3

answer
375

Views

Having a UIButton still selectable when UITextField is first responder?

I'm trying to figure out how to do something perhaps slightly non-standard. I have a view controller (a UIViewController) that has 1 UITextField and 3 UIButtons. I use the UIButtons basically as toggles; only 1 can be selected at a time. So each has: [myButton1 addTarget:self action:@selector(button...
aSadhankar
1

votes
3

answer
2.8k

Views

How do I make my UITableView Scroll?

In the following code, I push a new UITableView when I click on a button. The TableView has 25 rows. I can see the first 9 row and the 10th row got cut off. I can't scroll down to view the rest of the rows. How do I make the TableView scrollable? Thank you. - (IBAction)showListPicker:(id)sender...
atbebtg
1

votes
1

answer
2.6k

Views

Add subview to tableview which doesn't scroll

I'm using a UITableViewController and want to add a searchbar. My options are [self.tableview addSubview:searchBar] or self.tableview.tableHeaderView = searchBar Both options will scroll the searchbar along the rest of the tableview, which I understand. But is there a way to lock elements up, instea...
L. Steiner
1

votes
2

answer
513

Views

How to add navigationController to tabBar Controller programmatically?

In AppDelegate.m I am writing following code for navigationbar. MaterialsListViewController *materials = [[MaterialsListViewController alloc]initWithNibName:@'MaterialsListView' bundle:nil]; UINavigationController *navigation = [[UINavigationController alloc]initWithRootViewController:materials]; In...
Shreedhar
1

votes
1

answer
2.1k

Views

UIToolbar appearance for programmatically added tool bars

I have two UIToolbar instances, one added at the top of the screen, one at the bottom. I'd like to style these using iOS 5 appearance protocol. I can get the following to work: [[UIToolbar appearance] setBackgroundImage:[UIImage imageNamed:@'toolbarimage.png'] forToolbarPosition:UIToolbarPositionAny...
squarefrog
1

votes
4

answer
7.2k

Views

Remove spacing between UITableViewCells

I have UITableViewCells in the same section which have gaps between them. I coloured each cell's contentView background and did an NSLog to show that it's the same height as the cells. Still, there's a gap between them. They're definitely in the same section as each other. Any ideas as to what could...
Andrew
1

votes
1

answer
1.3k

Views

How to add UIActivityIndicatorView as UITextField’s rightView

To make the UIActivityIndicatorView the left view, all I do is searchField.leftView = self.progressIndicator; but if I change leftView to rightView then the indicator does not show. How might I fix this problem?
Katedral Pillon
1

votes
1

answer
869

Views

Corner Radius for a Label on UItableviewCell is not applying in xcode 8

Here is my code [cell.label.layer setCornerRadius:cell.label.frame.size.width/2]; here is what I tried :- cell.label.clipsToBounds = YES; also tried :- cell.label.layer.masksToBounds = YES; also I have Imported:- #import none of these approaches works. Also I have tried it in both IOS 9 and IOS 10...
vinay
1

votes
2

answer
302

Views

change views height in Keyboard extension (iPhone X)

I have following problem: I build a keyboard extension, a alternative keyboard to the system keyboard. In all older iPhone models it works fine, but at the iPhone X it doesn't. My problem is, the height of the keyboard's view is decreasing from 216px (iPhone 8 ,8+ , ...) to 141px (iPhone X). Because...
swiftUser
1

votes
1

answer
80

Views

Detect before the iPhone shuts down?

it it possible to detect before the iPhone shuts down to call actions like saving data to persistent store etc. for Swift I tried the appWillEnterBackground and appWillTerminate function, but it didn´t work when i shut down the phone in app
SwiftNewling
1

votes
3

answer
908

Views

Could not locate device support files in Xcode [duplicate]

This question already has an answer here: How to fix Xcode error: Could not locate device support files on iPhone with Xcode 4 answers I got following error in Xcode when run my app in my Device. Xcode Version is 10.01, My Device iOS Version 12.2 (iPhone 5S). Could not locate device support files.
Karthik
1

votes
2

answer
2.8k

Views

iPhone No Saved Photo Album created on iPhone

I am using iPhone 2.0 SDK. I used the API UIImageWriteToSavedPhotosAlbum to save an image. A Saved Photos album gets created on the iPhone Simulator when I save an image but tested on the device the image gets added in the Camera Roll album. While debugging, no errors occur but the Saved Photos albu...
Neo
1

votes
2

answer
684

Views

Can I still do object oriented programming when using OpenGL ES on iPhone OS?

When I program with OpenGL ES on iPhone OS, I have to use a lot of OpenGL functions. This looks very procedural to me. I wonder if I could make a class called 'cube', which will draw an cube if called. Or must all the application code be in one huge scope?
Thanks
1

votes
4

answer
3.9k

Views

EXC_BAD_ACCESS on ReloadData

I'm loading data dynamically from an API using a UISearchBar and trying to display it, using something like this: - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar { [searchBar resignFirstResponder]; NSLog(@'Search Text: %@',[searchBar text]); [self startSearchingWithText:[searchBar text...
Jason B
1

votes
2

answer
1.3k

Views

Nested NSArray / NSDictionary issue

I have an NSArray containing several NSDictionaries. I have an NSString containing an ID string. What I'm trying to do is iterate through the NSDictionaries until I find the object that matches the NSString. Then I want to return the entire NSDictionary. I'm fairly new to iPhone development, so I'm...
redwall_hp
1

votes
2

answer
4.1k

Views

sending sms programmatically in iphone

How can you send an SMS programmatically to a particular number selected in the contact list in iPhone?
user564963
1

votes
1

answer
892

Views

Is there a way for me to check if a song exists on the iPhone? [closed]

Can i see if a song exists on the phone? This is for when i'm loading up the app, so i can see if they've removed the song or not.
Andrew
0

votes
1

answer
25

Views

How to Avoid Call Alert in IOS

I am Developing An IOS Applications with swift I will Explain how my App works the Application Will Connect to a PC client With TCP/IP And will receive a phone Number to dial When I am Trying To send The number to the app to make a call the Phone Showing an Alert with 2 buttons 'Call' and 'Cancel...
Mahmoud Wizzo
3

votes
2

answer
124

Views

UISearchController wrong animation on swipe back then disappearing

To make this short, I have a main view controller that has the navigation bar hidden, from that VC's navigation controller, I push another view controller which has the navigation bar visible. Then I add a searchController to the navigationItem to add the searchBar when I scroll down. Everything is...
Eph Bee
1

votes
1

answer
2.1k

Views

Background Music Toggle (cocos2d iPhone) [closed]

I started making a toggle in my Settings scene for background music on/off. I'm not sure how to make this toggle only for background music, since I also have other effects and such in my game. How do I make the toggle only affect the background music in my app?
Joethemonkey101
1

votes
1

answer
464

Views

How to save a NSMutableDictionary in NSUserDefaults

I need to save a NSMutableDictionary in NSUserDefaults. I have searched the web for many examples, but have not received any ones that are relevant enough. Can somebody post a small piece of code which will save a NSMutableDictionary in NSUserDefaults at shutdown and retrieve it at launch of the app...
Aravind
1

votes
1

answer
1.4k

Views

how to fix sqlite3 errors while trying to implement my DBAccess class

I am working on my database access class thats trying to make calls to the DB with sqlite3 functions but I am getting all of these errors, I'm just woundering if anyone has experienced these kinda of errors before or if they have any idea as to why they might be occurring. Undefined symbols: '_sqlit...
tinhead
1

votes
2

answer
1.5k

Views

UIScrollView slideShow

UIScrollView *scrl = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 768,1024)]; scrl.contentSize = CGSizeMake(768 * 8, 1024); Here is the definition of my UIScrollView, I have a fill the scroll with 8 images each image is a 768*1024, how can I make UIScrollView slide show, each image stay 2 s...
user784625
1

votes
3

answer
1k

Views

Wrong Date from string returns from formatter! Why?

I have problem with NSDateFormatter I converting date from picker in one view `NSDateFormatter *output = [[NSDateFormatter alloc] init]; [output setDateStyle:NSDateFormatterMediumStyle]; [output setDateStyle:NSDateFormatterShortStyle]; [output setDateFormat:@'yyyy-MM-dd hh:mm:ss']; NSString *Str...
VSKMEDIA
1

votes
2

answer
2.8k

Views

Why is a picture appearing blurry on the iphone (no scaling)

I have been doing a bit of testing with images today and found that I could not make a blurry PNG image, which looked fine on my desktop appear non-blurry on the iphone without doing some strange things. It wasn't until I made the images twice the resolution, then resized them within the iphone that...
willdanceforfun
1

votes
3

answer
1.7k

Views

How to call a method once per second in objective-c

My program has a loop that does calculation and drawing like 60 times a second. I want my movement action be executed only once a second, how do I do that with objective-c methods?
Dvole
1

votes
3

answer
1.7k

Views

UIScrollView Notification?

Is there any notification send when UIScrollView changes it's scroll state? I would like to listen to those notification rather than using delegate methods? Any help is greatly appreciated....
Ab'initio
1

votes
2

answer
1.2k

Views

Programmatically find out the marketed memory size of iOS devices

Is there any way to programmatically (in Objective-C) find out the marketed total physical memory of an iOS devices (such as iPad 2 16G, 32G, 64G)? It looks like UIDevice related APIs (such as discussed here and here) do not give such information. Thanks!
Zebra Propulsion Lab
-1

votes
0

answer
9

Views

Cast from 'AUAudioUnitBus' to unrelated type '[String : AnyObject]' always fails

let weather = try JSONSerialization.jsonObject(with: data!, options: .mutableContainers) as! [String: AnyObject] self.utterance = AVSpeechUtterance(string: 'Weather data for (weather['name']!): It is ((weather['weather']![0]! as! [String: AnyObject])['main']!) outside. The temperature is (weather['m...
Drew A
1

votes
0

answer
374

Views

React Native expo there was a prob loading this experience

When i run 'exp start' from command line. my react native app builds perfectly on simulator and on device. i also ran exp start --no-dev which i assumed was to show what would run with dev mode flag off when i run exp publish. When i run 'exp publish' i get There was a problem loading this experienc...
James Woods
1

votes
2

answer
62

Views

add/removeClass doesn`t work on iPhone

This works correctly on browser but doesn't work on iPhone. Also I used the var $event = ($ua.match(/(iPod|iPhone|iPad)/i)) ? 'touchstart' : 'click'; It also doesn`t work on iPhone HTML hello CSS .mod_section.active{ display:none; } .mod_section{ display:block; } JQuery function mod(){ $('.mod_secti...
Eric Lee
1

votes
0

answer
42

Views

SpriteKit game deployed from TestFlight may not display correct on iPhones

I’m having an issue with games I’ve been developing for iOS using SpriteKit The issue deals with when the games are deployed through TestFlight and installed on iPhone devices. On some phones the games will not display correctly. They will appear zoomed in from the center and be clipped at the e...
Tron Thomas
1

votes
0

answer
69

Views

IOS - Connecting to bluetooth device in background periodically

I have a bluetooth device which connects to my iphone and i can perform all sorts of operations on the device. Its a tracking device and I log all sensor based data in the device. Since the device have a data limit, I want to read data from the device once every hour and dump it into a file through...
Kpatel1989
1

votes
1

answer
47

Views

How do I create a borderbody in SceneKit?

I'm trying to create a 3D Kite game in SceneKit, and I do not want my nodes to leave the screen. I know how to create a border body in SpriteKit. How do I do the same in SceneKit?
Mit Sengupta
1

votes
1

answer
54

Views

how can I call back to previous application problematically in ios swift?

I have made a custom keyboard in which in which i made a call of openURL(), so that I can open the containing application to capture text through OCR. Then i have made a userdefault for the application group and stored the text into it, so that the keyboard extension can read it. But the problem her...
smaaz01
1

votes
2

answer
33

Views

Search Controller for words

I have followed below example code for search feature in my application https://www.raywenderlich.com/157864/uisearchcontroller-tutorial-getting-started Everything is working fine and searching is also working perfectly. but when I enter the words in different order/sequence it does not give me the...
Bindi Manek
1

votes
0

answer
65

Views

resume() does not work if playback was paused for some time in lockscreen

The AVPlayer notify AVPlayerItemFailedToPlayToEndTimeNotification when playing the stream . i use the below code and print the error details : NSError *error = notification.userInfo[AVPlayerItemFailedToPlayToEndTimeErrorKey]; NSLog(@'itemFailedToPlayMPMovieFinishReasonPlaybackError=%@' ,error); Err...
Prashanth Patil

View additional questions