The version of iOS (formerly iPhone OS) was released by Apple on Oct 13, 2011. iOS 5 runs on iPhone 3GS, iPhone 4, iPhone 4S, iPod Touch 3rd and 4th generation, as well as all iPad models
0
votes
0answers
3 views
how to customize movie player controller
I need to create an app having functionality like while user see the video in video controller at that time some text or image is appearing on a video screen.while video is being finished and stop the ...
0
votes
0answers
21 views
facebook sdk from ios 6 to back ios 5
first i developed my project in ios 6 using facebook sdk 3.5.2 but because of some reason now I not have upgraded MAC & ios, now i have to work on ios5. thats why I moved my project to ios5. for ...
1
vote
0answers
13 views
ACAccountStore saveAccount no working on iOS5 but working on iOS6
ACAccountStore saveAccount no working on iOS5.
But it work well on iOS6.
I was read already 'Migrating tokens to system accounts' . and did follow code example of there.
Code was changed partially ...
0
votes
1answer
15 views
What are the reasons that presentShareDialog returns nil?
I'm trying to allow the user to post a simple Facebook status update, without using OpenGraph. So far, allowing the user to log in and asking for publish_actions permissions, goes well without a ...
1
vote
0answers
21 views
Unable to display macro enable word file in UIWebview
I'm trying to display MS office files(word,powerpoint,excel) using UIWebview some of the files have macros enable UIWebview is unable to display these files any idea why this happen? is there a way to ...
1
vote
0answers
25 views
In-App Purchase: how to handle receipt validation without uniqueIdentifier for iOS5?
To enable In-App Purchase in my application I did a tutorial which referenced a not up to date VerificationController for the receipt validation.
As a result my app got rejected because of using an ...
-2
votes
2answers
33 views
Autorotate not working on iPad 2 ios6 but working on ipad ios5 [closed]
The game is working fine on an iPad ios5, but it isn't rotating on iPad2 ios6.
Any advice what my problem is?
2
votes
1answer
95 views
+50
Importing, Displaying and Caching of large data
I'm trying to get data from some where and save it in a NSMutableArray of custom objects that contain that data and info.
Every time the user opens the app the same data is loaded from source and ...
0
votes
2answers
31 views
In which iOS does Facebook Share Dialog work in?
I intend to use Facebook Share Dialog(https://developers.facebook.com/docs/howtos/share-dialogs-ios-sdk/#sharedialog) for my application and interested to know whether it supports iOS5 or it is only ...
0
votes
2answers
61 views
Get Print preview and save it in PDF file
I want to generate a print preview of a web page and save it to an PDF file.
i tried stringByEvaluatingJavaScriptFromString:@"document.body.scrollHeight";
and
...
0
votes
0answers
37 views
Playing video and retrieving pixel buffer with ios5
What I would like to is to play a video (either from a local file and from a remote URL) and its audio track and retrieve the pixel buffer of each frame of the video to draw it to an OpenGL texture.
...
0
votes
4answers
89 views
Navigation Bar Item stretching image for button
I have setup a Navigation Bar in a storyboard with an UIBarButton for the right.
This is the code I use to update the image for this:
// Setup the right navigation bar item
[self.addGameButton ...
0
votes
2answers
73 views
How to know whether MKMapView visibleMapRect contains a Coordinate?
If I have a MKMapView and a CLLocationCoordinate2D how do you test whether the map's visible area contains the coordinate?
2
votes
2answers
462 views
UITapGestureRecognizer - make it work on touch down, not touch up?
What I'm using the tap event for is very time-sensitive, so I'm curious if it's possible to make UITapGestureRecognizer activate when the user simply touches down, rather than requiring them to touch ...
4
votes
1answer
241 views
Releasing an IOSurface
This question is an extension to:
Link-1: Creating an image out of the ios surface and saving it Link-2: Taking Screenshots from iOS app - emulating Display recorder (query on the internals)
(Refer ...
1
vote
3answers
420 views
UITextField - Rounded corner issue
I bring the issue forward which I face. I am creating a UITextField programmatically as below.
UItextField *mobileNumberField = [[UITextField alloc] initWithFrame:CGRectMake(10, 195, 300, 41)];
...
1
vote
2answers
1k views
Circular Progress Bars in IOS
I want to create a circular progress bar like the following:
How can I do that using Objective-C and Cocoa?
How I started doing it was creating a UIView and editing the drawRect, but I am bit lost. ...
6
votes
2answers
5k views
What is Container View in iOS 5 SDK?
I'm confused that why and when we need to use the container view? and how can we instantiate a Container View by code?
2
votes
1answer
740 views
Drawing a very thin line with CGContextAddLineToPoint and CGContextSetLineWidth
I want to draw a very thin hairline width of a line in my UIView's drawRect method. The line I see that has a value 0.5 for CGContextSetLineWidth doesn't match the same 1.0 width value that is used to ...
1
vote
2answers
596 views
Why doesn't Xcode automatically add viewDidUnload for me?
I'm reading this text on iOS 5 development, and it says the following:
Delete all the methods except for viewDidUnload. When you’re finished,
your implementation should look like this:
#import ...
17
votes
6answers
4k views
UIPageViewController in iOS6
In iOS6 in the methods viewControllerAfterViewController and viewControllerBeforeViewController if I return nil (for block the page navigation when I am in the first or last page) the app crash with ...
5
votes
0answers
338 views
existingObjectWithID:error: returns nil, but objectWithID: returns an actual usable object
My understanding from the documentation and from this answer is that if the data exists, NSManagedObjectContext's existingObjectWithID:error: and objectWithID: methods should return the same object, ...
5
votes
3answers
3k views
Check if logged in on ios facebook sdk 3.0
I am using iOS facebook SDK 3.0. How can i check if the user is already logged in?
I tried the line below but it does not work properly. It sometimes returns NO although I am logged in. Any ...
94
votes
6answers
24k views
Enabling auto layout in iOS 6 while remaining backwards compatible with iOS 5
What is the best way to take advantage of the new auto layout features of iOS 6 while still providing compability with older devices on earlier versions of iOS?
3
votes
2answers
337 views
What is the equivalent of Android's Html.fromHtml() in iOS?
In the Html class, Android has:
public static Spanned fromHtml (String source)
which according to the documentation:
Returns displayable styled text from the provided HTML string.
.. and ...
0
votes
0answers
78 views
Code help for using native map app for directions
I have various street addresses stored in a plist. On the view controller the user will press a button and they are taken to the native iOS maps application which will give them directions from their ...
10
votes
8answers
9k views
duplicate symbols for architecture i386 clang
I've seen several posts on google and stackoverflow related to this error, I've read all of them but still fetching the problem , I will be glad for a solution. Here is the error mesage I recieve when ...
1
vote
1answer
789 views
Using reachability on Iphone simulator and no wifi
I am using Reachability in my IOS app to determine a connection.
Following from this post wifi on iphone simulator
If the wifi is turned off the internet connection for the simulator is not ...
36
votes
2answers
10k views
dequeueReusableCellWithIdentifier error in my UITableView in iOS5
I am getting this error in iOS 5
-[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]: unrecognized selector sent to instance 0xa217200
However, I get no errors in iOS 6. How can I fix ...
1
vote
2answers
1k views
iOS: Take photo or select from library
I want to get an image from the user as shown here.
This looks like a lot of work:
see if device has camera
create action sheet with appropriate options
translate "Take Photo" and "Choose from ...
-9
votes
1answer
264 views
How to use/implement cell tower triangulation in iOS? [closed]
I want to display the current location when GPS is off.
Can Anyone help me in using cell tower triangulation method ?
Thanks in advance.
-5
votes
1answer
53 views
i Have 100 records get 4 four records in UITableView [closed]
hi i have 100 records i need to show 4 four records when i press load more button in UITableViewCell then load another 4 records in UiTableview
please guide me
Thanks for advance
8
votes
3answers
2k views
iOS 5.1 simulator Twitter sign in issue
I'm started to develop some application whit Twitter integration, but when trying sign in to Twitter ... this happen
http://i.stack.imgur.com/Agdn5.png
every time, I tried some different accounts.
...
2
votes
1answer
2k views
PresentModalViewController in Storyboard programatically iOS 5
I am using storyboards for FIRST time in my iOS app. I have 2 views in my Storyboard ( A & B). Lets say A is my initial view controller in my storyboard. When my app lauched, I can see view ...
0
votes
2answers
598 views
iOS Universal app not using assigned launch images Xcode 4.4
I'm wondering if anyone else has run into this problem. I read a few threads here about the proper naming and adding the key in the plist. I am able to get this working in the simulator for both the ...
0
votes
1answer
142 views
iOS can we reuse a NSTimer
I want to use an NSTimer (or if you have a better suggestion) to play a sound when the device is unplugged, or unknown. However if the user plugs the device back in, the sound should immediately stop.
...
1
vote
2answers
3k views
UIView self.layer.shouldRasterize = YES and performance issues
I would like to share my experience from using self.layer.shouldRasterize = YES; flag on UIViews.
I have a UIView class hierarchy that has self.layer.shouldRasterize turned ON in order to improve ...
2
votes
2answers
487 views
iOS - how do I create a “utility” class that all my controllers can call
I am new to iOS and obective-c so I am not too sure how to best accomplish this seemingly simple task.
What I want is to make a class that looks like this in pseudocode:
class UtilityClass
{
// ...
2
votes
3answers
593 views
How do I get a particle effect to follow my sprite in cocos2d?
I want a snow particle effect to follow my sprite and I tried some methods but all that ends up happening is the snow will just stay still instead of following. I did this one tutorial (will post as ...
3
votes
3answers
3k views
Why is my UIButton.tintColor not working?
My build target is set for IOS5 which is where I understand UIButton.tintColor was introduced...
I have this in my viewDidLoad for the View Controller
[timelineButton setTintColor:[UIColor ...
0
votes
1answer
149 views
UIDatePicker not snapping to nearest date
I've got a problem with a UIDatePicker, using IOS 5 on iPad 1
The problem is that the day/month/year values don't 'snap' to the nearest value when scrolling. As a result the datepicker barrels stop ...
0
votes
2answers
2k views
iOS: Force UIWebView to reload / prevent caching
I have an iPhone app that shows a website. This website changes it's content from time to time but my app doesn't reload it every time it is opened. I tried to prevent the caching of the site, but ...
11
votes
5answers
3k views
scrollViewWillEndDragging:withVelocity:targetContentOffset: not working on the edges of a UISCrollView
I'm trying to implement a custom tab bar which is scrollable and has paging at each tab bar item. For that i'm using the delegate scrollViewWillEndDragging:withVelocity:targetContentOffset: which ...
13
votes
3answers
7k views
Customizing Left & Right UISegmentedControl Buttons
I'm trying to customize the following segmented control, using a left image for the first button and a right image for the second button. How would I do this using UIAppearance?
I want to change the ...
3
votes
2answers
4k views
Custom MKAnnotationView with frame,icon and image
I've been searching for a similar solution on how to design a custom MKAnnotationView like this one.
I'v subclassed the MKAnnotation and i was able to add an image named F.png
the F.png is a frame ...
0
votes
1answer
989 views
ConvertRect accounting for UIScrollView zoom and contentOffset
I've been trying to get the converted CGRect of a UIView within a UIScrollView. It works fine if I'm not zoomed, but once I zoom, the new CGRect shifts. Here is the code that's gotten me close:
...
3
votes
1answer
2k views
How to configure the cache when using AFNetworking's setImageWithURL
I'm using setImageWithURL to download some images in my app. Is it possible:
to specify how long this image must be held in cache (eg 1 week)?
to specify how big the the maximum total size of the ...
2
votes
2answers
527 views
ksystemsoundid_vibrate not working in iphone4 and ipad
In my application,I need vibration while wrong password is being entered by the user.
My device OS : iOS5
It is vibrating in iPhone3G but not vibrating in iPhone4 and iPad.
I have followed this ...
2
votes
1answer
1k views
custom header overlaps cells in group
Im a bit stuck trying to create a custom ios table header. My headers are 30px tall and I am using this code to create them:
- (UIView *)tableView:(UITableView *)tableView ...
0
votes
1answer
1k views
Creating a JSONObject in iOS5
This answer seems to show how to make a JSONObject.
NSString *jsonString = @"[{\"id\": \"1\", \"name\":\"Aaa\"}, {\"id\": \"2\", \"name\":\"Bbb\"}]";
NSData *jsonData = [jsonString ...