w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
  Home » IPHONE » Page 1
Copy from array of dictionary to array of dictionary
I don't think it is possible in one liner that won't iterate....but here is the code that will do the job. Actually, you can make this logic into a method and add as your category to NSArray and NSMutableArray... places_dup will contain the dictionaries you are looking for. NSArray *places= @[ @{@"place_id" : @"NFxmX.VVU7LtQwQ", @"place_url" : @"/Per

Categories : Iphone

FPS much lower on iPad than iPhone
Yes, the larger devices will have poorer graphics performance in the simulator due to their, well, larger size ;) All rendering in the iOS Simulator is done in software. If you have graphics intensive apps, you might want to have a "low quality" setting for use in the simulator for rapid deployment testing and then verify performance and render quality on a real device.

Categories : Iphone

TableView Pushing to Detail View in Swift
The error is in your cellForRowAtIndexPath: performSegueWithIdentifier ("showDetail", sender: self) this triggers the segue when the cell is displayed, not when it's selected. The easiest way to fix that is to create a segue in IB from the cell to the destination view controller. Also, this code: func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) { if segue.identifier == "

Categories : Iphone

Where to use and initialize UIManagedDocument
Best way I found is create a new project (just as a sample), check 'Use Core Data' when asked, and look inside the AppDelegate. Use that to see how it's done and possibly, copy the appropriate parts (some adjustments will be needed of course). But mostly, use it to learn how Apple recommends it to be used. Create a custom class with a shared instance that has managedObjectContext property. In

Categories : Iphone

Is there any networking app for iPhone that can work together with other apps?
There is an app called NetworkToolbox for iPhone and iPad which can be integrated with external apps. For example, a remote access app can be used from inside Network Toolbox and vice versa. Network Toolbox can also be started using Safari. https://itunes.apple.com/us/app/networktoolbox-network-scanning/id651691453?mt=8

Categories : Iphone

I can't run my app in iOS 8.1 simulator
As your screenshot shows, you have set Valid Architectures to "armv7 armv7s" ... You should set it to "armv7 armv7s arm64" (or just delete the overwritten value). Also, make sure your deployment target is 6.0 or later (preferably 7.0 or later).

Categories : Iphone

resizing scene with swift and spritekit
The size of the scene is being set to the size of the view in scene = GameScene(size: skView.bounds.size) so it is only the images in the scene that are too small to fill the view. Make these changes to your GameViewController: if you set the size of the scene to the size of the background image: scene = GameScene(size: CGSize(width: backgroundImageWidth, height: backgroundImageHeight)) (r

Categories : Iphone

Swift Reload textfield from button action
convert the sender into a UIButton @IBAction func go(sender: AnyObject) { let yourButton = sender as UIButton println(yourButton.titleLabel.text) } Even better, if you're certain that only buttons are going to call the "go" action, you could instead do this: @IBAction func go(sender: UIButton) { println(sender.titleLabel.text) if(sender.titleLabel.text == "OK") printl

Categories : Iphone

Getting didSelectRowAtIndexPath to goto UIStoryboard with name "MainStoryboard" and "MaiinStoryboardiPad"
NSString *storyboardName = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone ? @"MainStoryboard" : @"MainStoryboardiPad"; UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle:nil]; Or you can probably get away with using self.storyboard instead.

Categories : Iphone

Random crashes in Xamarin iOS app
"Random" crashes almost always point to memory management problems (stack or heap corruption, over-releasing, etc). Your best bet is to use guard malloc and zombies to track down these issues. Instruments (a tool provided with Xcode) is a great asset for tracking down issues like yours.

Categories : Iphone

extract alert from urban airship userinfo
Actually urban airship does take care of it for you. Simple implement the protocol UAPushNotificationDelegate and method - (void)displayNotificationAlert:(NSString *)alertMessage;

Categories : Iphone

Best Way to add a tabbarController in a UIviewController which have a navigation controller?
I have worked on similar kind of app i-e Kubuto. The flow of this app was like this: ECSlidingViewConroller --> UINavigationController --> Custom Container UIViewController with TabBar --> UIViewController So you can have a hierarchy something like this: UINavigationController --> Custom Container UIViewController with TabBar --> UIViewController import UIKit class CustomTabbarControllerViewCo

Categories : Iphone

NSUserDafults not working properly in iOS7
well Objective-C and Xcode-6 works fine with UserDefaults, in my experience with NSUserDefaults you need to be very careful with the way you save and retrieve data: I Save data like this: NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; [prefs setObject:@"data" forKey:@"key"]; [prefs synchronize]; And i retrieve data like this: NSUserDefaults *prefs = [NSUserDefaults standardUse

Categories : Iphone

Face detection in IOS 8 and IOS 7?
CIDetector *smileDetector = [CIDetector detectorOfType:CIDetectorTypeFace context:context options:@{CIDetectorTracking: @YES, CIDetectorAccuracy: CIDetectorAccuracyLow}]; NSArray *features = [smileDetector featuresInImage:image options:@{CIDetectorSmile: @YES}];

Categories : Iphone

How do I download Healthkit step and distance data?
I'm not sure it can help you but this is how I get steps + (void)readUsersStepFromHK:(NSDate*)startDate end:(NSDate*)endDate { stepBegin=startDate; stepEnd=endDate; if ([HKHealthStore isHealthDataAvailable]) { HKUnit *unit = [HKUnit countUnit]; HKQuantityType *stepCountType = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierStepCount]; [self fetchMostRecentDataOfQu

Categories : Iphone

is it sufficient to supply 3x image only for all versions on iPhone?
The problem with this idea is that in iOS 8 the iphone 4S is still supported and it has a different aspect ratio than every other iPhone. It renders at 320x480 at 2x so creating images to fit this wouldn't look grainy. The other 3 screen sizes would work if you go with the 3x scale which would be 1920x1080 for every page and just downscale the size for the 4in and 4.7in screens. You will likely

Categories : Iphone

How to Send data to iPhone/Android from C# Web Service
I was able to figure this out a while back and figured I would mention the solution in case anyone else runs across this. In the most general sense, situations like this require the use of push notifications since they can be used to display a push notification on the device, or to send data packages to the phone for use in the app. I ended up using Google's Cloud Messaging Service. It was very

Categories : Iphone

App rejection - Crash report says: failed to scene-create in time (badf00d) What is wrong?
The issue is very simple. You just spend too much time loading your app on the splash screen and the iOS device stops your app. The reason it only happens in the review and not when you test it is because you always run it from Xcode, and when running from Xcode it won't have this behavior. If you will run your app directly from the device (but tapping it's icon) you will see it will happen there

Categories : Iphone

Hockey vs. Testflight
We've been beta testing our App via both HockeyApp and Apple's new Testflight within the last few weeks as well. I would recommend using both in parallel and seeing the pros and cons for yourself and from there you can choose one over the other. Here are our insights from the last few weeks: HockeyApp Pros: no need for an approval process quick upload of new versions while maintaining access to

Categories : Iphone

Is it possible to make a video app preview for iPhone6+ without an iPhone6+?
Depends on whether your app is functional enough and performs well enough on the simulator to produce a good video. QuickTime Player (and plenty of third-party Mac apps) can do screen recording, so you could do a recording of the simulator window.

Categories : Iphone

How to determine which device & os version of simulator?
I tried writing shell script on my own. Here is brief on what I am doing. Creating a folder on desktop for Shortcuts to simulators. Create an empty shell file which will have commands to create link to simulator with short good name. Go to Simulators & iterate through all device id & plist file to identify each simulator. Create necessary commands and append it to output.sh file Run out

Categories : Iphone

UIButton not showing in UIView using Swift
I got it. The frame for the button was not correct. Using theButton.Frame = theView.frame was making the button not display on frame. searchButton.frame = CGRectMake(0, 0, recentView.bounds.width, recentView.bounds.height) I used that and it worked.

Categories : Iphone

Play Sound in Swift SpriteKit project?
verify that the file exists in the project. instantiates the variables in the file first and then make a method for breeding. if the file exists in the project you should do the following: var sound = SKAction.playSoundFileNamed("sound.mp3", waitForCompletion: false) ... override func didMoveToView(view: SKView) { playSound(sound) //call playSound method when you want } func playSound(s

Categories : Iphone

3D transform image (in Bohemian Sketch)
I recently released a plugin solving the exact issue, it allows you to draw a shape with the Vector tool and then apply the content of an artboard into the area. It's called Magic Mirror, please take a look at http://magicmirror.design

Categories : Iphone

How to hook NSURLSession methods with theos?
NSURLSession is a class cluster, and you are hooking the toplevel class that contains no (or scarce little) code. You should investigate the subclasses of NSURLSession—potentially by logging the real class of an NSURLSession object in-situ. In my limited testing, I received an object whose class was truly named __NSURLSessionLocal.

Categories : Iphone

Phonegap serve on Ubuntu not syncing with iOS app
I also encountered this problem. It seems this issue is caused by case sensitivity of the file system. It tried to access inappbrowser.js but it is called InAppBrowser.js. So you can work around the error with a symlink: ln -s /usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/res/middleware/cordova/3.5.0/ios/plugins/org.apache.cordova.inappbrowser/www/InAppBrowser.js /usr/local/l

Categories : Iphone

xCode6 how to enable developer mode on an iOS device without deploying an app to it?
You may not need to do this any more? I just installed an ad-hoc app with a development provisioning profile on a device with iOS 8.1 and I didn't need to enable development mode on the device.

Categories : Iphone

Swift Remove a given value from an array
You can use the find() global function to retrieve the index: var specs : [String] = ["Button1","Button2","Button3","Button4"] let index = find(specs, "Button3") and then, once verified that the element exists (find returns an optional), remove it: if let index = index { specs.removeAtIndex(index) }

Categories : Iphone

How to prevent alertview from rotating on IOS 8 orientation change
You need to set <preference name="Orientation" value="portrait" /> in your config.xml and that should sort it, that will tell the OS to not allow any part of the app to rotate to landscape.

Categories : Iphone

Use of undeclared identifier PhonesViewController ios7 xCode
Looks like a typo to me. // Phohes? - (BOOL)PhohesViewController: (ABPeoplePickerNavigationController *)picker //Phohes? shouldContinueAfterSelectingPerson:(ABRecordRef)person

Categories : Iphone

Apps that include account registration or access a user’s existing account must include a privacy policy or they will be rejected
You need to write a privacy policy specific to your application and make it available over the internet. Use the same url link. Refer this link: http://www.iubenda.com/en/mobile/

Categories : Iphone

Keyboard issues in iphone 6 and 6 plus during orientation changes
Did you try adding Launch Images for both the iPhone 6 and 6+? Without specific Launch Images for the 2 new device resolutions, the app will basically pretend that the width is still 320px and just stretch everything out to fit the bigger screen. I have seen this cause many strange problems with the keyboard on iPhone 6 and 6+ devices, and it sounds like this may be the underlying issue here as we

Categories : Iphone

Size Classes in iOS 7
No I'm afraid that Size Classes were introduced in iOS 8. You could write some conditional code to run on iOS to determine the screen/view size/orientation and change the the layout that way when iOS 8 becomes your minimum target the conditional code can be removed.

Categories : Iphone

How do I center a UIImageView either programmatically or in the storyboard
If you want to do it without auto layout and constraints then programatically it would be something like this. UIImage *yourImage = .... UIImageView *imageView = [[UIImageView alloc] initWithImage:yourImage]; [self.view addSubview:imageView]; CGSize superviewSize = imageView.superview.frame.size; imageView.center = CGPointMake((superviewSize.width / 2), (superviewSize.heigth / 2));

Categories : Iphone

How to rotate and point to cursor location in SpriteKit?
So long answer, this will help you.(I benefited from raywenderlich's book) //Math Utilities static inline CGPoint CGPointSubtract(const CGPoint a, const CGPoint b) { return CGPointMake(a.x - b.x, a.y - b.y); } static inline CGPoint CGPointMultiplyScalar(const CGPoint a, const CGFloat b) { return CGPointMake

Categories : Iphone

Bootstrap carousel not sliding on iphone
Problem solved, the bootstrap auto compiler (website) wasn't including vendor prefixes. Solution here -> https://github.com/twbs/bootstrap/issues/14973

Categories : Iphone

getUserMedia alternative for iOS
Well, I'm not sure what you want, but I saw this javascript code that works, I mean it takes the picture. <script> $("#image-picker").change( function (event) { var files = event.target.files; if (files.length>0) { } }); /script> <input id="image-picker" type="file" accept="image/*" /> If you want to save, you got me there, I still don't know how to save the picture

Categories : Iphone

iOS app, place to save user id and password
You can try save confidential information, such as userId and token in Keychain. This one is simple and straightforward https://github.com/kharrison/UYLPasswordManager. Regards Hammer

Categories : Iphone

Open/Close Menu Condition
Never use boolean for this task. As you have menu width in your method "showMenu". Take a class level property assign menu width to it. Apply a check in your method "menuAction". If you menu width is greater than 0 it means you have to close it. Incase if it is less than zero it means you have to show it.

Categories : Iphone




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.